package com.nightsoul.springboottest2.service;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import org.springframework.stereotype.Service;

import com.nightsoul.springboottest2.domain.SysUser;
import com.nightsoul.springboottest2.domain.SysUserRepository;

@Service
@Transactional
public class SysUserServiceImpl implements SysUserService {
	@Resource
	private SysUserRepository sysUserRepository;

	@Override
	public SysUser findByUsername(String username) {
		return this.sysUserRepository.findByUsername(username);
	}
	
}
